home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
3_9.lha
/
3_9
/
3_9b.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-08
|
339b
|
18 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ reverse the characters within the string s
include <swap.h>
include <string.h>
oid rev(char *s)
if (!s)
return;
char *e = s + strlen(s) - 1;
for ( ; s < e ; s++, e--)
swap(*s, *e);